package com.java.string;

public class Client {
	public static void main(String[] args) {
		String hello = "Hello", lo = "lo";
		System.out.print((hello == "Hello") + " ");//true
		System.out.print((Other.hello == hello) + " ");//true
		System.out.print((com.java.string.other.Other.hello == hello) + " ");//true
		System.out.print((hello == ("Hel"+"lo")) + " ");//true
		System.out.print((hello == ("Hel"+lo)) + " ");//false
		System.out.println(hello == ("Hel"+lo).intern());//true
		StringBuffer s = null;
	}
}
class Other { static String hello = "Hello"; }